#ifndef SECTIONMODEL_H
#define SECTIONMODEL_H

#include <QAbstractListModel>
#include "abstractfileloader.h"

class SectionModel : public QAbstractTableModel
{
public:
    SectionModel(QObject *parent=0);
    void addSections(QList<FileSection*> sections);
    int rowCount(const QModelIndex &parent) const;
    int columnCount(const QModelIndex & parent) const;
    QVariant headerData(int section, Qt::Orientation orientation, int role) const;
    QVariant data(const QModelIndex &index, int role)  const;
private:
    QList<FileSection*> sections;
};

#endif // SECTIONMODEL_H
